package cate.game.server.configuration.dao.game;

import cate.game.db.mongo.GameStatusDao;
import cate.game.server.configuration.dao.MgIdHexDao;
import cate.game.status.GameStatus;

public class MgGameStatusDao extends MgIdHexDao<GameStatus> implements GameStatusDao {

    @Override
    protected Class<GameStatus> getEntityClass() {
        return GameStatus.class;
    }

    @Override
    protected void writeIdHex(GameStatus entity, String idHex) {
        entity.id = idHex;
    }

    @Override
    protected String readIdHex(GameStatus entity) {
        return entity.id;
    }

}
